package com.zj.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("hello")
public class HelloController {

    private Apple apple;

    public HelloController(Apple apple){
        this.apple=apple;
    }

    @RequestMapping("world")
    public String hello() {
        return "hello 1wrqsdaasd"+Apple.id;
    }
}
